<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    
	
	<title>_入库明细</title>
</head>



<body>
	<section class="content">
	<div class="row">
		<div class="col-md-12">

			<!-- Primary box -->
			<div class="box box-solid box-primary">
				<div class="box-header">
					<i class="fa fa-list"></i>
					<h3 class="box-title">入库数据</h3>
					<div class="box-tools pull-right">
						<button class="btn btn-primary btn-sm" data-widget="collapse">
							<i class="fa fa-minus"></i>
						</button>
					</div>
				</div>
				<div class="box-body">
	<!-- 入库数据 -->
	<table id="contentTable" class="table  table-bordered table-condensed">
		<thead><tr>
		    <th>序号</th>
		    <th>商家</th>
		    <th>仓库</th>
		    <th>入库单号</th>
		    <th>入库类型</th>
			<th>sku</th>
		    <th>数量</th>
		    <th>是否破损件</th>
		    <th>入库时间</th>
		 </tr></thead>
		 
		 <c:forEach  items="${infoList}" var="item" varStatus="i">
			 <tr>
			   <td>${i.count}</td>
			   <td>${item.customerCode}</td>
			   <td>${item.warehouseCode}</td>
			   <td>${item.billCode}</td>
			   <td>
			      <c:if test="${item.billType eq 'customer' }"><font color=green>采购入库</font></c:if>
			      <c:if test="${item.billType eq 'preOrder' }"><font color=green>预约入库</font></c:if>
			      <c:if test="${item.billType eq 'allot'}"><font color=blue>调拨入库</font></c:if>
			      <c:if test="${item.billType eq 'returnOrder' or item.billType eq 'cancelOrder'  or item.billType eq 'cancel' }"><font color=red>退回入库</font></c:if>
			   </td>
			   <td>${item.sku}</td>
			   <td>${item.num}</td>
			    <td>
			     <c:if test="${item.errorFlag eq 'error'}"><font color=red>破损件</font></c:if>
			     <c:if test="${item.errorFlag ne 'error'}"><font color=black>正常件</font></c:if> 
			   </td>
			   <td>${fn:substring(item.opeTime,0,19)}</td>
			 </tr>
		 </c:forEach>
		 
	</table>
	</div>
	</div>
	</div>
	</div>
	</section>
</body>
</html>
